import request from '@/utils/request'

// 查询商品SKU列表
export function listGoodsSku (query) {
  return request({
    url: '/offline/goods/sku',
    method: 'get',
    params: query
  })
}

// 商品SKU上架状态修改
export function changeGoodsSkuMarketEnable (goodsSkuId, marketEnable) {
  const data = { marketEnable }
  return request({
    url: '/offline/goods/sku/' + goodsSkuId + '/marketEnable',
    method: 'put',
    data: data
  })
}

